<?php
    //Reanudamos la sesión
    session_start();
    //@session_regenerate_id();
    //Validamos si existe realmente una sesión activa o no
    if (!isset($_SESSION['USER']) || !isset($_SESSION['ADMIN']) || !isset($_SESSION['APENOM'])) {
        //Si no hay sesión activa, lo direccionamos al login.php (inicio de sesión)
        header("Location: login.php");
        exit();
    } else {
        $usuario = $_SESSION['USER'];
        $apenom = $_SESSION['APENOM'];
        $admin = $_SESSION['ADMIN'];
    
        require_once "fuentes/db/Conexion.php";

        $cantidadPersonas = consultar("SELECT COUNT(p.id) as cantidad FROM personas as p");
        $cantidadMovimientos = consultar("SELECT COUNT(m.id) as cantidad FROM movimientos as m");
        $cantidadRespuesta = consultar("SELECT COUNT(r.id) as cantidad FROM respuestas as r");
        $cantidadCupones = consultar("SELECT COUNT(c.id) as cantidad FROM cupones as c");

        $cantidadHoyMovimiento = consultar("SELECT COUNT(m.id) as cantidad FROM movimientos as m where m.fecha_creacion >='" . date("Y-m-d") . "'");
        $cantidadHoyRespuesta = consultar("SELECT COUNT(m.id) as cantidad FROM movimientos as m where m.fecha_creacion >='" . date("Y-m-d") . "'");
        $cantidadHoyCupones = consultar("SELECT COUNT(m.id) as cantidad FROM movimientos as m where m.fecha_creacion >='" . date("Y-m-d") . "'");
    }
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <meta charset="utf-8" />
        <title>CRM Casino - Admin Dashboard</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta content="" name="description" />
        <meta content="" name="author" />

        <!-- BEGIN PLUGIN CSS -->
        <!--<link href="web/assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css" media="screen"/>-->
        <!--<link href="web/assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen"/>-->
        <!--<link href="web/assets/plugins/gritter/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>-->
        <!--<link href="web/assets/plugins/bootstrap-datepicker/css/datepicker.css" rel="stylesheet" type="text/css" />-->
        <link rel="stylesheet" href="web/assets/plugins/jquery-ricksaw-chart/css/rickshaw.css" type="text/css" media="screen" >
        <link rel="stylesheet" href="web/assets/plugins/jquery-morris-chart/css/morris.css" type="text/css" media="screen">
        <!--<link href="web/assets/plugins/jquery-slider/css/jquery.sidr.light.css" rel="stylesheet" type="text/css" media="screen"/>-->
        <!--<link href="web/assets/plugins/bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen"/>-->
        <link href="web/assets/plugins/jquery-jvectormap/css/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" media="screen"/>
        <!--<link href="web/assets/plugins/boostrap-checkbox/css/bootstrap-checkbox.css" rel="stylesheet" type="text/css" media="screen"/>-->
      
        <!--table-->
        <link href="web/assets/plugins/bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="web/assets/plugins/jquery-slider/css/jquery.sidr.light.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="web/assets/plugins/jquery-datatable/css/jquery.dataTables.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/plugins/boostrap-checkbox/css/bootstrap-checkbox.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="web/assets/plugins/datatables-responsive/css/datatables.responsive.css" rel="stylesheet" type="text/css" media="screen"/>
        <!-- END PLUGIN CSS -->

        <!-- BEGIN CORE CSS FRAMEWsORK -->

        <link href="web/assets/plugins/boostrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/plugins/boostrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/plugins/bootstrap-datetimepiker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />

        <link href="web/assets/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/css/animate.min.css" rel="stylesheet" type="text/css"/>
        <!-- END CORE CSS FRAMEWORK -->

        <!-- BEGIN CSS TEMPLATE -->
        <link href="web/assets/css/style.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/css/responsive.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/css/custom-icon-set.css" rel="stylesheet" type="text/css"/>
        <link href="web/assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css"/>
      
        
        <!-- END CSS TEMPLATE -->
    </head>
    <!-- END HEAD -->

    <!-- BEGIN BODY -->
    <body class="">
        <!-- BEGIN HEADER -->
        <div class="header navbar navbar-inverse "> 
            <!-- BEGIN TOP NAVIGATION BAR -->
            <div class="navbar-inner">
                <div class="header-seperation"> 
                    <ul class="nav pull-left notifcation-center" id="main-menu-toggle-wrapper" style="display:none">	
                        <li class="dropdown"> <a id="main-menu-toggle" href="#main-menu"  class="" > <div class="iconset top-menu-toggle-white"></div> </a> </li>		 
                    </ul>
                    <!-- BEGIN LOGO -->	
                    <img src="web/assets/img/logo.png" class="logo" alt=""  data-src="web/assets/img/logo.png" data-src-retina="web/assets/img/logo2x.png" width="106" height="21"/>
                    <!-- END LOGO --> 
                    <ul class="nav pull-right notifcation-center">	
                        <li class="dropdown" id="header_task_bar"> <a href="index.php" class="dropdown-toggle active" data-toggle=""> <div class="iconset top-home"></div> </a> </li>
                    </ul>
                </div>
                <!-- END RESPONSIVE MENU TOGGLER --> 
                <div class="header-quick-nav" > 
                    <!-- BEGIN TOP NAVIGATION MENU -->
                    <div class="pull-left"> 
                        <ul class="nav quick-section">
                            <li class="quicklinks"> <a href="#" class="" id="layout-condensed-toggle" >
                                    <div class="iconset top-menu-toggle-dark"></div>
                                </a> 
                            </li>
                        </ul>
                    </div>
                    <div class="pull-right"> 
                        <ul class="nav quick-section ">
                            <li class="quicklinks"><div class="bold"><span class="fa fa-user"></span> <?php echo $apenom; ?></div></li>
                            <li class="quicklinks"><span class="h-seperate"></span></li> 
                            <li class="quicklinks"> 
                                <a data-toggle="dropdown" class="dropdown-toggle  pull-right " href="#" id="user-options">						
                                    <div class="iconset top-settings-dark "></div> 	
                                </a>
                                <ul class="dropdown-menu  pull-right" role="menu" aria-labelledby="user-options">
                                    <li><a href="#cambio-pass" data-toggle="modal"  data-target="#myModalPasswordADD"> Cambiar Contraseña</a></li>
                                    <li class="divider"></li>
                                    <li><a href="logout.php"><i class="fa fa-power-off"></i>&nbsp;&nbsp;Salir</a></li>
                                </ul>
                            </li> 
                            
                          
                        </ul>
                    </div>
                    <!-- END CHAT TOGGLER -->
                </div> 
                <!-- END TOP NAVIGATION MENU --> 
            </div>
            <!-- END TOP NAVIGATION BAR --> 
        </div>

        <!-- END HEADER --> 
        <!-- BEGIN CONTAINER -->
        <div class="page-container row"> 
            <!-- BEGIN SIDEBAR -->
            <div class="page-sidebar" id="main-menu">                 
                <ul>	
                    <li class="start active "> <a href="index.php" > <i class="icon-custom-home"></i> <span class="title">Dashboard</span> <span class="selected"></span> </a> </li>
                    <li class=""> <a href="#persona" rel="ajax"> <i class="fa fa-users"></i> <span class="title">Personas</span>  </a> </li>      
                    <li class=""> <a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Bleu</span> <span class="arrow "></span> </a>
                        <ul class="sub-menu">
                            <li class=""> <a href="#bleu-specifics" rel="ajax"> <i class="fa fa-credit-card"></i> <span class="title">Personas Bleu</span>  </a> </li>  
                            <li class=""> <a href="#bleu-ranking-visitas" rel="ajax"> <i class="fa fa-trophy"></i> <span class="title">Ranking de Visitas</span>  </a> </li>  
                        
                        </ul>
                    </li>
                    <li class=""> <a href="#movimiento-time" rel="ajax"> <i class="fa fa-tasks"></i>  <span class="title">Movimientos</span></a></li>      

                    <li class=""> <a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Sorteos</span> <span class="arrow "></span> </a>
                        <ul class="sub-menu">
                            <li class=""> <a href="#sorteo" rel="ajax"> <i class="fa fa-bitbucket"></i> <span class="title">Sorteos</span>  </a> </li>      
                            <li class=""> <a href="#cupon" rel="ajax"> <i class="fa fa-ticket"></i> <span class="title">Cupones</span>  </a> </li>

                        </ul>
                    </li>

                    <li class=""> <a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Encuestas</span> <span class="arrow "></span> </a>
                        <ul class="sub-menu">
                            <li class=""> <a href="#encuesta" rel="ajax"> <i class="fa fa-qrcode"></i> <span class="title">Encuestas</span>  </a> </li>  
                            <li class=""> <a href="#respuesta" rel="ajax"> <i class="fa fa-comments-o"></i> <span class="title"> Respuestas </span>  </a> </li>  

                        </ul>
                    </li>
                    <li class=""> <a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Mantenimiento</span> <span class="arrow "></span> </a>
                        <ul class="sub-menu">
                            <li class=""> <a href="#sucursal" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Sucursales</span>  </a> </li>      
                            <li class=""> <a href="#sector" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Sectores</span>  </a> </li>      
                            <li class=""> <a href="#moneda" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Monedas</span>  </a> </li>
                            <li class=""> <a href="#pais" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Paises</span>  </a> </li>   
                            <li class=""> <a href="#ciudad" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Ciudades</span>  </a> </li>   
                        </ul>
                    </li>
                    
                    
                     <li class=""> <a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Poker</span> <span class="arrow "></span> </a>
                        <ul class="sub-menu">
                            <li class=""> <a href="#poker-torneo" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Torneos</span>  </a> </li>      
                            <li class=""> <a href="#poker-estructura" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Estructuras</span>  </a> </li>   
                            <li class=""> <a href="#participante" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Participantes</span>  </a> </li> 
                            <li class=""> <a href="#poker-movimiento" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Movimientos</span>  </a> </li> 
                            <li class=""> <a href="#poker-evento" rel="ajax"> <i class="fa fa-briefcase"></i> <span class="title">Eventos</span>  </a> </li> 
                        </ul>
                    </li>

                    <?php                        
                        if ($admin==8) {
                            echo "<li class=''> <a href='javascript:;'> <i class='fa fa-desktop'></i> <span class='title'>Admin</span> <span class='arrow '></span> </a>
                                    <ul class='sub-menu'>
                                        <li class=''> <a href='#persona-admin' rel='ajax'> <i class='fa fa-briefcase'></i> <span class='title'>Personas Admin</span>  </a> </li> 
                                    </ul>
                                </li>";                        
                        }
                    ?>
                </ul>

                <a href="#" class="scrollup">Scroll</a>
                <div class="clearfix"></div>
                <!-- END SIDEBAR MENU --> 
            </div>
            <!-- END SIDEBAR --> 
            
            
            
            <!-- BEGIN PAGE CONTAINER-->
            <div class="page-content"> 


                <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
                <div id="portlet-config" class="modal hide">
                    <div class="modal-header">
                        <button data-dismiss="modal" class="close" type="button"></button>
                        <h3>Widget Settings</h3>
                    </div>
                    <div class="modal-body"> Widget settings form goes here </div>
                </div>
                <div class="clearfix"></div>
                <div id="content-load">



                    <div class="content">  


                        <div class="page-title">	

                            <h3>Dashboard </h3>	
                            <div id="mensaje_ok"></div>
                                                       
                        </div>		
                        <div id="container">
                            <div class="row spacing-bottom 2col">	
                                <div class="col-md-3 col-sm-6 spacing-bottom-sm spacing-bottom">	
                                    <div class="tiles blue added-margin">
                                        <div class="tiles-body">
                                            <div class="controller">								
                                                <a href="javascript:;" class="reload"></a>
                                                <a href="javascript:;" class="remove"></a>		
                                            </div>		
                                            <div class="tiles-title">
                                                PERSONAS
                                            </div>	
                                            <div class="heading">
                                                <span class="animate-number" data-value="26.8" data-animation-duration="1200">0</span>%

                                            </div>
                                            <div class="progress transparent progress-small no-radius">
                                                <div class="progress-bar progress-bar-white animate-progress-bar" data-percentage="26.8%"></div>

                                            </div>					
                                            <div class="description"><i class="icon-custom-up"></i><span class="text-white mini-description ">&nbsp; cantidad total <?php echo $cantidadPersonas[0]['cantidad']; ?></span></div>
                                        </div>	
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-6 spacing-bottom-sm spacing-bottom">
                                    <div class="tiles green added-margin">
                                        <div class="tiles-body">
                                            <div class="controller">								
                                                <a href="javascript:;" class="reload"></a>
                                                <a href="javascript:;" class="remove"></a>									
                                            </div>		
                                            <div class="tiles-title">
                                                MOVIMIENTO DE HOY
                                            </div>	
                                            <div class="heading">
                                                <span class="animate-number" data-value="<?php echo $cantidadHoyMovimiento[0]['cantidad']; ?>" data-animation-duration="1000">0</span>	
                                            </div>
                                            <div class="progress transparent progress-small no-radius">
                                                <div class="progress-bar progress-bar-white animate-progress-bar" data-percentage="79%" ></div>
                                            </div>				
                                            <div class="description"><i class="icon-custom-up"></i><span class="text-white mini-description ">&nbsp;cantidad total <?php echo $cantidadMovimientos[0]['cantidad']; ?></span></div>	
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-6 spacing-bottom">
                                    <div class="tiles red added-margin">
                                        <div class="tiles-body">
                                            <div class="controller">								
                                                <a href="javascript:;" class="reload"></a>
                                                <a href="javascript:;" class="remove"></a>										
                                            </div>	
                                            <div class="tiles-title">
                                                RESPUESTA DE HOY
                                            </div>	
                                            <div class="heading">
                                                $ <span class="animate-number" data-value="14500" data-animation-duration="1200">0</span>	
                                            </div>
                                            <div class="progress transparent progress-white progress-small no-radius">
                                                <div class="progress-bar progress-bar-white animate-progress-bar" data-percentage="45%" ></div>
                                            </div>
                                            <div class="description"><i class="icon-custom-up"></i><span class="text-white mini-description ">&nbsp;cantidad total <?php echo $cantidadRespuesta[0]['cantidad']; ?></span></div>	
                                        </div>
                                    </div>

                                </div> 
                                <div class="col-md-3 col-sm-6">
                                    <div class="tiles purple added-margin">
                                        <div class="tiles-body">
                                            <div class="controller">								
                                                <a href="javascript:;" class="reload"></a>
                                                <a href="javascript:;" class="remove"></a>									
                                            </div>		
                                            <div class="tiles-title">
                                                CUPONES DE HOY
                                            </div>	
                                            <div class="row-fluid">
                                                <div class="heading">
                                                    <span class="animate-number" data-value="1600" data-animation-duration="700">0</span>

                                                </div>
                                                <div class="progress transparent progress-white progress-small no-radius">
                                                    <div class="progress-bar progress-bar-white animate-progress-bar" data-percentage="12%"></div>
                                                </div>
                                            </div>
                                            <div class="description"><i class="icon-custom-up"></i><span class="text-white mini-description ">&nbsp;cantidad total <?php echo $cantidadCupones[0]['cantidad']; ?></span></div>

                                        </div>
                                    </div>
                                </div>			
                            </div>  
                            <div class="row">		
                                <div class="col-md-8 spacing-bottom">


                                    <div class="row tiles-container spacing-bottom tiles grey">			
                                        <div class="tiles white col-md-8 col-sm-8 no-padding">																	  
                                            <div class="tiles-body">		
                                                <div class="row">
                                                    <div class="col-md-6 col-sm-6">
                                                        <div class="mini-chart-wrapper">
                                                            <div class="chart-details-wrapper">
                                                                <div class="chartname">
                                                                    New Orders
                                                                </div>
                                                                <div class="chart-value">
                                                                    17,555
                                                                </div>													
                                                            </div>
                                                            <div class="mini-chart">
                                                                <div id="mini-chart-orders"></div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6 col-sm-6">
                                                        <div class="mini-chart-wrapper">
                                                            <div class="chart-details-wrapper">
                                                                <div class="chartname">
                                                                    My Balance
                                                                </div>
                                                                <div class="chart-value">
                                                                    $17,555
                                                                </div>													
                                                            </div>
                                                            <div class="mini-chart">
                                                                <div id="mini-chart-other" ></div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>											
                                            </div>	
                                            <br>
                                            <div id="ricksaw" ></div>									

                                            <div class="clearfix"></div>	
                                        </div>	
                                        <div class="col-md-4 col-sm-4 no-padding">
                                            <div class="tiles grey ">
                                                <div class="tiles white no-margin">
                                                    <div class="tiles-body">
                                                        <div class="tiles-title blend">
                                                            OVERALL VIEWS		
                                                        </div>
                                                        <div class="heading">
                                                            <span data-animation-duration="1000" data-value="432852" class="animate-number">0</span>	
                                                        </div>	
                                                        44% higher <span class="blend">than last month</span>	
                                                    </div>
                                                </div>						
                                                <div id="legend"></div>						
                                            </div>	
                                        </div>	
                                    </div>

                                </div>
                                <div class="col-md-4">
                                    <div class="row spacing-bottom ">
                                        <div class="col-md-12">				
                                            <div class="tiles white added-margin">
                                                <div class="tiles-body">
                                                    <div class="controller">								
                                                        <a href="javascript:;" class="reload"></a>
                                                        <a href="javascript:;" class="remove"></a>									
                                                    </div>
                                                    <div class="tiles-title">
                                                        SERVER LOAD
                                                    </div>	
                                                    <div class="heading text-black ">
                                                        250 GB
                                                    </div>	
                                                    <div class="progress  progress-small no-radius">
                                                        <div class="progress-bar progress-bar-success animate-progress-bar" data-percentage="25%" ></div>
                                                    </div>
                                                    <div class="description">
                                                        <span class="mini-description"><span class="text-black">250GB</span> of <span class="text-black">1,024GB</span> used</span>								
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tiles white added-margin">
                                                <div id="chart">								
                                                </div>
                                            </div>
                                        </div>			
                                    </div>

                                </div>
                            </div> 
                        </div>  
                        <!-- END PAGE --> 
                    </div>
                </div>
            </div>

            <!-- END CONTAINER --> 
        </div>

        <!-- BEGIN CORE JS FRAMEWORK--> 
        <script src="web/assets/plugins/jquery-1.8.3.min.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/boostrapv3/js/bootstrap.min.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/moment/moment.js" type="text/javascript"></script>
        <script src="web/assets/plugins/bootstrap-datetimepiker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
        <!--<script src="web/assets/plugins/bootstrap-datetimepiker/js/bootstrap-datetimepicker.es.js" type="text/javascript"></script>-->

        <script src="web/assets/plugins/breakpoints.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script> 
        <!-- END CORE JS FRAMEWORK --> 

        <!-- BEGIN PAGE LEVEL JS --> 
        <script src="web/assets/plugins/pace/pace.min.js" type="text/javascript"></script>  
        <script src="web/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/jquery-numberAnimate/jquery.animateNumbers.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script>  
        <script src="web/assets/plugins/jquery-block-ui/jqueryblockui.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/bootstrap-select2/select2.min.js" type="text/javascript"></script>
        <script src="web/assets/plugins/jquery-ricksaw-chart/js/raphael-min.js"></script> 
        <script src="web/assets/plugins/jquery-ricksaw-chart/js/d3.v2.js"></script>
        <script src="web/assets/plugins/jquery-ricksaw-chart/js/rickshaw.min.js"></script>
        <script src="web/assets/plugins/jquery-morris-chart/js/morris.min.js"></script>
        <script src="web/assets/plugins/jquery-easy-pie-chart/js/jquery.easypiechart.min.js"></script>
        <script src="web/assets/plugins/jquery-slider/jquery.sidr.min.js" type="text/javascript"></script> 	
        <script src="web/assets/plugins/jquery-jvectormap/js/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script> 	
        <script src="web/assets/plugins/jquery-jvectormap/js/jquery-jvectormap-us-lcc-en.js" type="text/javascript"></script> 	
        <script src="web/assets/plugins/jquery-sparkline/jquery-sparkline.js"></script>
        <script src="web/assets/plugins/jquery-flot/jquery.flot.min.js"></script>
        <script src="web/assets/plugins/jquery-flot/jquery.flot.animator.min.js"></script>
        <script src="web/assets/plugins/skycons/skycons.js"></script>
        <!--table-->
        <script type="text/javascript" src="web/assets/plugins/datatables-responsive/js/datatables.responsive.js"></script>
        <script type="text/javascript" src="web/assets/plugins/datatables-responsive/js/lodash.min.js"></script>
       
<!--        <script src="web/assets/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>

         END PAGE LEVEL PLUGINS    	
        <script src="web/assets/js/form_validations.js" type="text/javascript"></script>-->
        <!-- PAGE JS --> 	
        <script src="web/assets/js/dashboard.js" type="text/javascript"></script>
        <!-- BEGIN CORE TEMPLATE JS --> 
        <script src="web/assets/js/core.js" type="text/javascript"></script> 
<!--        <script src="web/assets/js/chat.js" type="text/javascript"></script> -->
        <script src="web/assets/js/demo.js" type="text/javascript"></script> 
        <!-- END CORE TEMPLATE JS -->
        <script src="web/assets/js/jquery.history.js" type="text/javascript"></script> 
        <script src="web/assets/plugins/pace/pace.min.5.js" type="text/javascript"></script> 
        
        <script src="web/assets/js/script.js" type="text/javascript"></script>         
        

        <!--MODAL CHANGE PASS-->
        <?php require_once './fuentes/view/persona/CambioPasswordView.php'; ?>

    </body>
</html>
